<!-- 子标题组件 -->
<template>
  <view class="sub-title">
    <image src="@/assets/images/sub-title.png" mode="scaleToFill" />
    <text>
      <slot />
    </text>
  </view>
</template>

<script lang="ts" setup></script>

<style lang="scss" scoped>
  .sub-title {
    display: flex;
    align-items: center;
    image {
      width: 22rpx;
      height: 28rpx;
    }
    text {
      font-size: 28rpx;
      color: $uni-color-title;
      font-weight: 600;
      margin-left: 8rpx;
    }
  }
</style>
